import request from '@/utils/request'

// 查询用户信息列表
export function listLkUser(query) {
  return request({
    url: '/base/lkUser/list',
    method: 'get',
    params: query
  })
}

// 查询所有用户信息列表
export function lkUserList(query) {
  return request({
    url: '/base/lkUser/lkUserList',
    method: 'get',
    params: query
  })
}

// 查询用户信息详细
export function getLkUser(userId) {
  return request({
    url: '/base/lkUser/' + userId,
    method: 'get'
  })
}

// 新增用户信息
export function addLkUser(data) {
  return request({
    url: '/base/lkUser',
    method: 'post',
    data: data
  })
}

// 修改用户信息
export function updateLkUser(data) {
  return request({
    url: '/base/lkUser',
    method: 'put',
    data: data
  })
}

// 删除用户信息
export function delLkUser(userId) {
  return request({
    url: '/base/lkUser/' + userId,
    method: 'delete'
  })
}

// 导出用户信息
export function exportLkUser(query) {
  return request({
    url: '/base/lkUser/export',
    method: 'get',
    params: query
  })
}

// 用户统计
export function dataCount() {
  return request({
    url: '/base/lkUser/dataCount',
    method: 'get'
  })
}
